package com.zhu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaozhu
 * @since 2022-08-24
 */
@TableName("sys_dept")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dept extends Base implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "did", type = IdType.AUTO)
    private Long did;

    private String dname;

    private Long pid;

    private String ancestors;

    private String person;

    private String phone;

    private String email;

    private Integer status;


    @Override
    public String toString() {
        return "Dept{" +
                "did=" + did +
                ", dname='" + dname + '\'' +
                ", pid=" + pid +
                ", status=" + status +
                '}';
    }
}
